/*
 * MapPoint.h
 *
 *  Created on: Nov 21, 2009
 *      Author: jbarreneche
 */

#ifndef MAPPOINT_H_
#define MAPPOINT_H_

class MapPoint {
public:
	MapPoint(double x, double y) {
		this->x_position = x;
		this->y_position = y;
	}
	MapPoint(const MapPoint &copy) {
		this->x_position = copy.x_position;
		this->y_position = copy.y_position;
	}
	virtual ~MapPoint() {}
	virtual double getX() { return this->x_position; }
	virtual double getY() { return this->y_position; }
	virtual bool operator==(const MapPoint &another) {
		return (this->x_position == another.x_position) && (this->y_position == another.y_position);
	}
	virtual bool between(MapPoint A, MapPoint B);
	virtual bool operator!=(const MapPoint &anOther);
private:
	double x_position;
	double y_position;
};

#endif /* MAPPOINT_H_ */
